//@dart=2.12
import 'package:base_flutter/base_flutter.dart';

/// creator : "欧葆庭测试"
/// auditor : null
/// proControllerName : null
/// bedId : 3384
/// bedNo : "302"
/// event : "跌倒事件"
/// timeIntervalName : "1201-1400"
/// ageIntervalName : "-6"
/// branchName : "上海欧葆庭顾村国际颐养中心"
/// occurrenceUnit : "上海欧葆庭顾村国际颐养中心"
/// falldownLocation : null
/// falldownLocationType : null
/// motivation : null
/// motivationType : null
/// occurrenceActivity : null
/// occurrenceActivityType : null
/// placeType : null
/// otherPlace : null
/// qualityAnomalousEvent : {"branchName":"上海欧葆庭顾村国际颐养中心","damageLevelName":null,"messageMan":[],"anaomalousFalldownAttaches":[],"findStaffName":null,"customerName":"20240529","bedId":null,"bedNo":null,"fallDownDate":null,"fallFactorName":"跌倒在外因素1","damageTypeName":null,"circumstanceName":null,"qualityByName":"空腹","cityId":1649,"eventId":86,"reportTime":"2024-07-15 11:01:21","reporterId":null,"reporterName":"欧葆庭测试","workingAge":null,"post":"营销总监","customerId":74599,"consciousState":"清醒","falldownHighRish":null,"screenItem":null,"activityAnalyze":"","diagnose":null,"falldownLocationType":2,"falldownLocation":null,"findStaffType":null,"findStaff":"[object Object]","falldownTimes":null,"eventDescription":"1","processDescription":"1","occurrenceActivityType":0,"occurrenceActivity":null,"motivationType":1,"motivation":null,"bedrailUsage":2,"preventiveAction":null,"antiFalldownPlan":null,"useSedative":0,"sedativeName":null,"useAntihistamine":0,"antihistamineName":null,"useAngiomyocardiac":0,"angiomyocardiacName":null,"useAnalgetic":0,"analgeticName":null,"useAperient":null,"aperientName":null,"useDiuretic":null,"diuretic":null,"useOtherMedicine":null,"otherMedicineName":null,"falldownScreenCorrectness":0,"screenIncorrectItem":"入住时跌倒高危险群筛选正确性：","damageLevel":null,"damageParts":"","isHealthStatus":0,"healthStatus":"4","healthStatusHemoglobin":null,"healthStatusOther":null,"isMedicineCure":null,"isNarcotism":1,"narcotismDescription":null,"isMedicine":null,"medicineHours":null,"medicineDescription":null,"isEnvironment":null,"environmentDescription":"6","isEquipment":null,"equipmentDescription":"","equipmentDescriptionOther":null,"isOtherFactor":null,"otherFactorDesciption":null,"notConfirmFalldownRisk":null,"improperUseEquipment":null,"improperReason":null,"evaluationWrong":null,"constraintNoRecord":null,"notShift":null,"equipmentNotSaft":null,"notFalldownRiskEdu":null,"otherIssue":null,"otherIssueDescription":null,"isElderRelationEdu":null,"elderRelationEdu":null,"elderRelationEduTime":null,"isNurseEdu":null,"nurseEdu":null,"nurseEduTime":null,"isAmendNursePaln":null,"amendNursePaln":null,"amendNursePalnTime":null,"isEnvironmentImprovement":null,"environmentImprovement":null,"environmentImprovementTime":null,"isObservationInterval":null,"observationOriginalInterval":null,"observationNewInterval":null,"isOtherImprovement":null,"otherImprovement":null,"otherImprovementTime":null,"executiveAuditOpion":null,"exdcutiveAuditRate":null,"executiveId":null,"executiveName":null,"executiveAuditTime":null,"cityManagerId":null,"cityManager":null,"cityManagerOpinion":null,"cityManagerAuditTime":null,"cityManagerForward":null,"qualityManagerId":null,"qualityManager":null,"qualityManagerOpion":null,"qualityManagerAuditTime":null,"qualityManagerForward":null,"departDirectorId":null,"departDirector":null,"departDirectorOpion":null,"departDirectorAuditTime":null,"departDirectorForward":null,"generalManagerId":null,"generalManager":null,"generalManagerOpion":null,"generalManagerAuditTime":null,"approveResultIncontrol":null,"approveResultRate":null,"approveResultOpion":null,"currentTreatmentMeasures":null,"branchId":1590,"tenantId":1000,"saasId":1000,"informFamilies":1,"informDoctor":1,"informNurse":1,"callEmergencyNumber":0,"bodyPositionBeforeFallingType":1,"bodyPositionBeforeFalling":null,"accessoriesOrEnvironmentType":1,"accessoriesOrEnvironment":null,"constraintStatusBeforeFalling":0,"wearingShoesSituationType":1,"wearingShoesSituation":null,"accessoriesType":2,"accessories":null,"visionAccessories":0,"hearingAids":1,"remarks":null,"generateShiftInformation":null,"qualityBy":"1","circumstance":"6","circumstanceRemark":null,"fallAccompany":null,"fallFactor":"1","doctorDate":null,"nurseDate":null,"dependentsDate":null,"evacuateHospital":null,"passAway":null,"damage":null,"damageType":null,"damageDescription":null,"armpitTemperature":null,"bloodPressure":null,"pulse":null,"bloodSugar":null,"breathe":null,"painVas":null,"bloodOxygen":null,"painAlg":null,"limbs":null,"anticoagulant":null,"diagnosis":null,"anticoagulantName":null,"medicinalSource":null,"medicinalSourceName":null,"measure":null,"nurseType":null,"nurseTypeDate":null,"single":null,"singleDate":null,"foundName":null,"foundPosts":null,"id":42,"createdBy":"73945","createdDate":"2024-07-15 13:44:58","updatedBy":"73945","updatedDate":"2024-07-15 16:52:14"}
/// roomId : 2188
/// roomNo : "302"
/// sexName : "男"
/// nurseLevelName : "3A级"
/// hasBpm : null
/// archivingStatusName : "待归档"
/// cityId : 1649
/// customerId : 74599
/// eventType : 1
/// eventSubType : 1
/// occurrenceTime : "2024-07-15 13:44:46"
/// timeInterval : 7
/// creatorId : 73945
/// prognosisGrade : null
/// approveGrade : null
/// controllable : null
/// auditorId : null
/// auditeTime : null
/// proControllable : null
/// occurrenceUnitId : 1590
/// customerName : "20240529"
/// age : 23
/// ageInterval : -6
/// sex : 0
/// checkinDate : "2024-05-29 00:00:00"
/// mmseScore : null
/// mmseLevel : null
/// mmseJudgeName : null
/// nurseLevel : 298
/// adlScore : null
/// adlLevel : null
/// adlJudgeName : null
/// status : 0
/// auditOpinion : null
/// eventDetermination : null
/// branchId : 1590
/// tenantId : 1000
/// saasId : 1000
/// accCode : "1000.1649.1590"
/// bpmNo : null
/// deleteStatus : 0
/// archivingStatus : 0
/// notifer : "[{\"name\":\"欧葆庭测试\",\"humanId\":\"73945\"}, {\"name\":\"骆小欧\",\"humanId\":\"74136\"}, {\"name\":\"祁佳\",\"humanId\":\"74138\"}, {\"name\":\"王瑾\",\"humanId\":\"74140\"}]"
/// no : "202407002"
/// id : 86
/// createdBy : "73945"
/// createdDate : "2024-07-15 13:44:58"
/// updatedBy : "73945"
/// updatedDate : "2024-07-15 16:52:14"

class EventDetailData {
  EventDetailData({
    this.creator,
    this.auditor,
    this.proControllerName,
    this.bedId,
    this.bedNo,
    this.event,
    this.timeIntervalName,
    this.ageIntervalName,
    this.branchName,
    this.occurrenceUnit,
    this.falldownLocation,
    this.falldownLocationType,
    this.motivation,
    this.motivationType,
    this.occurrenceActivity,
    this.occurrenceActivityType,
    this.placeType,
    this.otherPlace,
    this.qualityAnomalousEvent,
    this.roomId,
    this.roomNo,
    this.sexName,
    this.nurseLevelName,
    this.hasBpm,
    this.archivingStatusName,
    this.cityId,
    this.customerId,
    this.eventType,
    this.eventSubType,
    this.occurrenceTime,
    this.timeInterval,
    this.creatorId,
    this.prognosisGrade,
    this.approveGrade,
    this.controllable,
    this.auditorId,
    this.auditeTime,
    this.proControllable,
    this.occurrenceUnitId,
    this.customerName,
    this.age,
    this.ageInterval,
    this.sex,
    this.checkinDate,
    this.mmseScore,
    this.mmseLevel,
    this.mmseJudgeName,
    this.nurseLevel,
    this.adlScore,
    this.adlLevel,
    this.adlJudgeName,
    this.status,
    this.auditOpinion,
    this.eventDetermination,
    this.branchId,
    this.tenantId,
    this.saasId,
    this.accCode,
    this.bpmNo,
    this.deleteStatus,
    this.archivingStatus,
    this.notifer,
    this.no,
    this.id,
    this.createdBy,
    this.createdDate,
    this.updatedBy,
    this.updatedDate,
  });

  EventDetailData.fromJson(dynamic json) {
    creator = json['creator'];
    auditor = json['auditor'];
    proControllerName = json['proControllerName'];
    bedId = json['bedId'];
    bedNo = json['bedNo'];
    event = json['event'];
    timeIntervalName = json['timeIntervalName'];
    ageIntervalName = json['ageIntervalName'];
    branchName = json['branchName'];
    occurrenceUnit = json['occurrenceUnit'];
    falldownLocation = json['falldownLocation'];
    falldownLocationType = json['falldownLocationType'];
    motivation = json['motivation'];
    motivationType = json['motivationType'];
    occurrenceActivity = json['occurrenceActivity'];
    occurrenceActivityType = json['occurrenceActivityType'];
    placeType = json['placeType'];
    otherPlace = json['otherPlace'];
    qualityAnomalousEvent = json['qualityAnomalousEvent'] != null
        ? QualityAnomalousEvent.fromJson(json['qualityAnomalousEvent'])
        : null;
    roomId = json['roomId'];
    roomNo = json['roomNo'];
    sexName = json['sexName'];
    nurseLevelName = json['nurseLevelName'];
    hasBpm = json['hasBpm'];
    archivingStatusName = json['archivingStatusName'];
    cityId = json['cityId'];
    customerId = json['customerId'];
    eventType = json['eventType'];
    eventSubType = json['eventSubType'];
    occurrenceTime = json['occurrenceTime'];
    timeInterval = json['timeInterval'];
    creatorId = json['creatorId'];
    prognosisGrade = json['prognosisGrade'];
    approveGrade = json['approveGrade'];
    controllable = json['controllable'];
    auditorId = json['auditorId'];
    auditeTime = json['auditeTime'];
    proControllable = json['proControllable'];
    occurrenceUnitId = json['occurrenceUnitId'];
    customerName = json['customerName'];
    age = json['age'];
    ageInterval = json['ageInterval'];
    sex = json['sex'];
    checkinDate = json['checkinDate'];
    mmseScore = json['mmseScore'];
    mmseLevel = json['mmseLevel'];
    mmseJudgeName = json['mmseJudgeName'];
    nurseLevel = json['nurseLevel'];
    adlScore = json['adlScore'];
    adlLevel = json['adlLevel'];
    adlJudgeName = json['adlJudgeName'];
    status = json['status'];
    auditOpinion = json['auditOpinion'];
    eventDetermination = json['eventDetermination'];
    branchId = json['branchId'];
    tenantId = json['tenantId'];
    saasId = json['saasId'];
    accCode = json['accCode'];
    bpmNo = json['bpmNo'];
    deleteStatus = json['deleteStatus'];
    archivingStatus = json['archivingStatus'];
    notifer = json['notifer'];
    no = json['no'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }

  String? creator;
  dynamic auditor;
  dynamic proControllerName;
  num? bedId;
  String? bedNo;
  String? event;
  String? timeIntervalName;
  String? ageIntervalName;
  String? branchName;
  String? occurrenceUnit;
  dynamic falldownLocation;
  dynamic falldownLocationType;
  dynamic motivation;
  dynamic motivationType;
  dynamic occurrenceActivity;
  dynamic occurrenceActivityType;
  dynamic placeType;
  dynamic otherPlace;
  QualityAnomalousEvent? qualityAnomalousEvent;
  num? roomId;
  String? roomNo;
  String? sexName;
  String? nurseLevelName;
  dynamic hasBpm;
  String? archivingStatusName;
  num? cityId;
  num? customerId;
  num? eventType;
  num? eventSubType;
  String? occurrenceTime;
  num? timeInterval;
  num? creatorId;
  dynamic prognosisGrade;
  dynamic approveGrade;
  dynamic controllable;
  dynamic auditorId;
  dynamic auditeTime;
  dynamic proControllable;
  num? occurrenceUnitId;
  String? customerName;
  num? age;
  num? ageInterval;
  num? sex;
  String? checkinDate;
  dynamic mmseScore;
  dynamic mmseLevel;
  dynamic mmseJudgeName;
  num? nurseLevel;
  dynamic adlScore;
  dynamic adlLevel;
  dynamic adlJudgeName;
  num? status;
  dynamic auditOpinion;
  dynamic eventDetermination;
  num? branchId;
  num? tenantId;
  num? saasId;
  String? accCode;
  dynamic bpmNo;
  num? deleteStatus;
  num? archivingStatus;
  String? notifer;
  String? no;
  num? id;
  String? createdBy;
  String? createdDate;
  String? updatedBy;
  String? updatedDate;

  EventDetailData copyWith({
    String? creator,
    dynamic auditor,
    dynamic proControllerName,
    num? bedId,
    String? bedNo,
    String? event,
    String? timeIntervalName,
    String? ageIntervalName,
    String? branchName,
    String? occurrenceUnit,
    dynamic falldownLocation,
    dynamic falldownLocationType,
    dynamic motivation,
    dynamic motivationType,
    dynamic occurrenceActivity,
    dynamic occurrenceActivityType,
    dynamic placeType,
    dynamic otherPlace,
    QualityAnomalousEvent? qualityAnomalousEvent,
    num? roomId,
    String? roomNo,
    String? sexName,
    String? nurseLevelName,
    dynamic hasBpm,
    String? archivingStatusName,
    num? cityId,
    num? customerId,
    num? eventType,
    num? eventSubType,
    String? occurrenceTime,
    num? timeInterval,
    num? creatorId,
    dynamic prognosisGrade,
    dynamic approveGrade,
    dynamic controllable,
    dynamic auditorId,
    dynamic auditeTime,
    dynamic proControllable,
    num? occurrenceUnitId,
    String? customerName,
    num? age,
    num? ageInterval,
    num? sex,
    String? checkinDate,
    dynamic mmseScore,
    dynamic mmseLevel,
    dynamic mmseJudgeName,
    num? nurseLevel,
    dynamic adlScore,
    dynamic adlLevel,
    dynamic adlJudgeName,
    num? status,
    dynamic auditOpinion,
    dynamic eventDetermination,
    num? branchId,
    num? tenantId,
    num? saasId,
    String? accCode,
    dynamic bpmNo,
    num? deleteStatus,
    num? archivingStatus,
    String? notifer,
    String? no,
    num? id,
    String? createdBy,
    String? createdDate,
    String? updatedBy,
    String? updatedDate,
  }) =>
      EventDetailData(
        creator: creator ?? this.creator,
        auditor: auditor ?? this.auditor,
        proControllerName: proControllerName ?? this.proControllerName,
        bedId: bedId ?? this.bedId,
        bedNo: bedNo ?? this.bedNo,
        event: event ?? this.event,
        timeIntervalName: timeIntervalName ?? this.timeIntervalName,
        ageIntervalName: ageIntervalName ?? this.ageIntervalName,
        branchName: branchName ?? this.branchName,
        occurrenceUnit: occurrenceUnit ?? this.occurrenceUnit,
        falldownLocation: falldownLocation ?? this.falldownLocation,
        falldownLocationType: falldownLocationType ?? this.falldownLocationType,
        motivation: motivation ?? this.motivation,
        motivationType: motivationType ?? this.motivationType,
        occurrenceActivity: occurrenceActivity ?? this.occurrenceActivity,
        occurrenceActivityType:
            occurrenceActivityType ?? this.occurrenceActivityType,
        placeType: placeType ?? this.placeType,
        otherPlace: otherPlace ?? this.otherPlace,
        qualityAnomalousEvent:
            qualityAnomalousEvent ?? this.qualityAnomalousEvent,
        roomId: roomId ?? this.roomId,
        roomNo: roomNo ?? this.roomNo,
        sexName: sexName ?? this.sexName,
        nurseLevelName: nurseLevelName ?? this.nurseLevelName,
        hasBpm: hasBpm ?? this.hasBpm,
        archivingStatusName: archivingStatusName ?? this.archivingStatusName,
        cityId: cityId ?? this.cityId,
        customerId: customerId ?? this.customerId,
        eventType: eventType ?? this.eventType,
        eventSubType: eventSubType ?? this.eventSubType,
        occurrenceTime: occurrenceTime ?? this.occurrenceTime,
        timeInterval: timeInterval ?? this.timeInterval,
        creatorId: creatorId ?? this.creatorId,
        prognosisGrade: prognosisGrade ?? this.prognosisGrade,
        approveGrade: approveGrade ?? this.approveGrade,
        controllable: controllable ?? this.controllable,
        auditorId: auditorId ?? this.auditorId,
        auditeTime: auditeTime ?? this.auditeTime,
        proControllable: proControllable ?? this.proControllable,
        occurrenceUnitId: occurrenceUnitId ?? this.occurrenceUnitId,
        customerName: customerName ?? this.customerName,
        age: age ?? this.age,
        ageInterval: ageInterval ?? this.ageInterval,
        sex: sex ?? this.sex,
        checkinDate: checkinDate ?? this.checkinDate,
        mmseScore: mmseScore ?? this.mmseScore,
        mmseLevel: mmseLevel ?? this.mmseLevel,
        mmseJudgeName: mmseJudgeName ?? this.mmseJudgeName,
        nurseLevel: nurseLevel ?? this.nurseLevel,
        adlScore: adlScore ?? this.adlScore,
        adlLevel: adlLevel ?? this.adlLevel,
        adlJudgeName: adlJudgeName ?? this.adlJudgeName,
        status: status ?? this.status,
        auditOpinion: auditOpinion ?? this.auditOpinion,
        eventDetermination: eventDetermination ?? this.eventDetermination,
        branchId: branchId ?? this.branchId,
        tenantId: tenantId ?? this.tenantId,
        saasId: saasId ?? this.saasId,
        accCode: accCode ?? this.accCode,
        bpmNo: bpmNo ?? this.bpmNo,
        deleteStatus: deleteStatus ?? this.deleteStatus,
        archivingStatus: archivingStatus ?? this.archivingStatus,
        notifer: notifer ?? this.notifer,
        no: no ?? this.no,
        id: id ?? this.id,
        createdBy: createdBy ?? this.createdBy,
        createdDate: createdDate ?? this.createdDate,
        updatedBy: updatedBy ?? this.updatedBy,
        updatedDate: updatedDate ?? this.updatedDate,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['creator'] = creator;
    map['auditor'] = auditor;
    map['proControllerName'] = proControllerName;
    map['bedId'] = bedId;
    map['bedNo'] = bedNo;
    map['event'] = event;
    map['timeIntervalName'] = timeIntervalName;
    map['ageIntervalName'] = ageIntervalName;
    map['branchName'] = branchName;
    map['occurrenceUnit'] = occurrenceUnit;
    map['falldownLocation'] = falldownLocation;
    map['falldownLocationType'] = falldownLocationType;
    map['motivation'] = motivation;
    map['motivationType'] = motivationType;
    map['occurrenceActivity'] = occurrenceActivity;
    map['occurrenceActivityType'] = occurrenceActivityType;
    map['placeType'] = placeType;
    map['otherPlace'] = otherPlace;
    if (qualityAnomalousEvent != null) {
      map['qualityAnomalousEvent'] = qualityAnomalousEvent?.toJson();
    }
    map['roomId'] = roomId;
    map['roomNo'] = roomNo;
    map['sexName'] = sexName;
    map['nurseLevelName'] = nurseLevelName;
    map['hasBpm'] = hasBpm;
    map['archivingStatusName'] = archivingStatusName;
    map['cityId'] = cityId;
    map['customerId'] = customerId;
    map['eventType'] = eventType;
    map['eventSubType'] = eventSubType;
    map['occurrenceTime'] = occurrenceTime;
    map['timeInterval'] = timeInterval;
    map['creatorId'] = creatorId;
    map['prognosisGrade'] = prognosisGrade;
    map['approveGrade'] = approveGrade;
    map['controllable'] = controllable;
    map['auditorId'] = auditorId;
    map['auditeTime'] = auditeTime;
    map['proControllable'] = proControllable;
    map['occurrenceUnitId'] = occurrenceUnitId;
    map['customerName'] = customerName;
    map['age'] = age;
    map['ageInterval'] = ageInterval;
    map['sex'] = sex;
    map['checkinDate'] = checkinDate;
    map['mmseScore'] = mmseScore;
    map['mmseLevel'] = mmseLevel;
    map['mmseJudgeName'] = mmseJudgeName;
    map['nurseLevel'] = nurseLevel;
    map['adlScore'] = adlScore;
    map['adlLevel'] = adlLevel;
    map['adlJudgeName'] = adlJudgeName;
    map['status'] = status;
    map['auditOpinion'] = auditOpinion;
    map['eventDetermination'] = eventDetermination;
    map['branchId'] = branchId;
    map['tenantId'] = tenantId;
    map['saasId'] = saasId;
    map['accCode'] = accCode;
    map['bpmNo'] = bpmNo;
    map['deleteStatus'] = deleteStatus;
    map['archivingStatus'] = archivingStatus;
    map['notifer'] = notifer;
    map['no'] = no;
    map['id'] = id;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }

  Map<String, dynamic> toSubmitJson() {
    final map = <String, dynamic>{};
    map['creator'] = creator;
    map['auditor'] = auditor;
    map['proControllerName'] = proControllerName;
    map['bedId'] = bedId;
    map['bedNo'] = bedNo;
    map['event'] = event;
    map['timeIntervalName'] = timeIntervalName;
    map['ageIntervalName'] = ageIntervalName;
    map['branchName'] = branchName;
    map['occurrenceUnit'] = occurrenceUnit;
    map['falldownLocation'] = falldownLocation;
    map['falldownLocationType'] = falldownLocationType;
    map['motivation'] = motivation;
    map['motivationType'] = motivationType;
    map['occurrenceActivity'] = occurrenceActivity;
    map['occurrenceActivityType'] = occurrenceActivityType;
    map['placeType'] = placeType;
    map['otherPlace'] = otherPlace;
    if (qualityAnomalousEvent != null) {
      if(eventType==1){
        map['qualityAnomalousFalldownBean'] = qualityAnomalousEvent?.toJson();
      }
      if(eventType==4){
        map['qualityAnomalousDrugAbnormalEventBean'] = qualityAnomalousEvent?.toJson();
      }

      if(eventType==5){
        map['qualityAnomalousOtherAbnormalEventBean'] = qualityAnomalousEvent?.toJson();
      }
    }
    map['roomId'] = roomId;
    map['roomNo'] = roomNo;
    map['sexName'] = sexName;
    map['nurseLevelName'] = nurseLevelName;
    map['hasBpm'] = hasBpm;
    map['archivingStatusName'] = archivingStatusName;
    map['cityId'] = cityId;
    map['customerId'] = customerId;
    map['eventType'] = eventType;
    map['eventSubType'] = eventSubType;
    map['occurrenceTime'] = occurrenceTime;
    map['timeInterval'] = timeInterval;
    map['creatorId'] = creatorId;
    map['prognosisGrade'] = prognosisGrade;
    map['approveGrade'] = approveGrade;
    map['controllable'] = controllable;
    map['auditorId'] = auditorId;
    map['auditeTime'] = auditeTime;
    map['proControllable'] = proControllable;
    map['occurrenceUnitId'] = occurrenceUnitId;
    map['customerName'] = customerName;
    map['age'] = age;
    map['ageInterval'] = ageInterval;
    map['sex'] = sex;
    map['checkinDate'] = checkinDate;
    map['mmseScore'] = mmseScore;
    map['mmseLevel'] = mmseLevel;
    map['mmseJudgeName'] = mmseJudgeName;
    map['nurseLevel'] = nurseLevel;
    map['adlScore'] = adlScore;
    map['adlLevel'] = adlLevel;
    map['adlJudgeName'] = adlJudgeName;
    map['status'] = status;
    map['auditOpinion'] = auditOpinion;
    map['eventDetermination'] = eventDetermination;
    map['branchId'] = branchId;
    map['tenantId'] = tenantId;
    map['saasId'] = saasId;
    map['accCode'] = accCode;
    map['bpmNo'] = bpmNo;
    map['deleteStatus'] = deleteStatus;
    map['archivingStatus'] = archivingStatus;
    map['notifer'] = notifer;
    map['no'] = no;
    map['id'] = id;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }
}

/// branchName : "上海欧葆庭顾村国际颐养中心"
/// damageLevelName : null
/// messageMan : []
/// anaomalousFalldownAttaches : []
/// findStaffName : null
/// customerName : "20240529"
/// bedId : null
/// bedNo : null
/// fallDownDate : null
/// fallFactorName : "跌倒在外因素1"
/// damageTypeName : null
/// circumstanceName : null
/// qualityByName : "空腹"
/// cityId : 1649
/// eventId : 86
/// reportTime : "2024-07-15 11:01:21"
/// reporterId : null
/// reporterName : "欧葆庭测试"
/// workingAge : null
/// post : "营销总监"
/// customerId : 74599
/// consciousState : "清醒"
/// falldownHighRish : null
/// screenItem : null
/// activityAnalyze : ""
/// diagnose : null
/// falldownLocationType : 2
/// falldownLocation : null
/// findStaffType : null
/// findStaff : "[object Object]"
/// falldownTimes : null
/// eventDescription : "1"
/// processDescription : "1"
/// occurrenceActivityType : 0
/// occurrenceActivity : null
/// motivationType : 1
/// motivation : null
/// bedrailUsage : 2
/// preventiveAction : null
/// antiFalldownPlan : null
/// useSedative : 0
/// sedativeName : null
/// useAntihistamine : 0
/// antihistamineName : null
/// useAngiomyocardiac : 0
/// angiomyocardiacName : null
/// useAnalgetic : 0
/// analgeticName : null
/// useAperient : null
/// aperientName : null
/// useDiuretic : null
/// diuretic : null
/// useOtherMedicine : null
/// otherMedicineName : null
/// falldownScreenCorrectness : 0
/// screenIncorrectItem : "入住时跌倒高危险群筛选正确性："
/// damageLevel : null
/// damageParts : ""
/// isHealthStatus : 0
/// healthStatus : "4"
/// healthStatusHemoglobin : null
/// healthStatusOther : null
/// isMedicineCure : null
/// isNarcotism : 1
/// narcotismDescription : null
/// isMedicine : null
/// medicineHours : null
/// medicineDescription : null
/// isEnvironment : null
/// environmentDescription : "6"
/// isEquipment : null
/// equipmentDescription : ""
/// equipmentDescriptionOther : null
/// isOtherFactor : null
/// otherFactorDesciption : null
/// notConfirmFalldownRisk : null
/// improperUseEquipment : null
/// improperReason : null
/// evaluationWrong : null
/// constraintNoRecord : null
/// notShift : null
/// equipmentNotSaft : null
/// notFalldownRiskEdu : null
/// otherIssue : null
/// otherIssueDescription : null
/// isElderRelationEdu : null
/// elderRelationEdu : null
/// elderRelationEduTime : null
/// isNurseEdu : null
/// nurseEdu : null
/// nurseEduTime : null
/// isAmendNursePaln : null
/// amendNursePaln : null
/// amendNursePalnTime : null
/// isEnvironmentImprovement : null
/// environmentImprovement : null
/// environmentImprovementTime : null
/// isObservationInterval : null
/// observationOriginalInterval : null
/// observationNewInterval : null
/// isOtherImprovement : null
/// otherImprovement : null
/// otherImprovementTime : null
/// executiveAuditOpion : null
/// exdcutiveAuditRate : null
/// executiveId : null
/// executiveName : null
/// executiveAuditTime : null
/// cityManagerId : null
/// cityManager : null
/// cityManagerOpinion : null
/// cityManagerAuditTime : null
/// cityManagerForward : null
/// qualityManagerId : null
/// qualityManager : null
/// qualityManagerOpion : null
/// qualityManagerAuditTime : null
/// qualityManagerForward : null
/// departDirectorId : null
/// departDirector : null
/// departDirectorOpion : null
/// departDirectorAuditTime : null
/// departDirectorForward : null
/// generalManagerId : null
/// generalManager : null
/// generalManagerOpion : null
/// generalManagerAuditTime : null
/// approveResultIncontrol : null
/// approveResultRate : null
/// approveResultOpion : null
/// currentTreatmentMeasures : null
/// branchId : 1590
/// tenantId : 1000
/// saasId : 1000
/// informFamilies : 1
/// informDoctor : 1
/// informNurse : 1
/// callEmergencyNumber : 0
/// bodyPositionBeforeFallingType : 1
/// bodyPositionBeforeFalling : null
/// accessoriesOrEnvironmentType : 1
/// accessoriesOrEnvironment : null
/// constraintStatusBeforeFalling : 0
/// wearingShoesSituationType : 1
/// wearingShoesSituation : null
/// accessoriesType : 2
/// accessories : null
/// visionAccessories : 0
/// hearingAids : 1
/// remarks : null
/// generateShiftInformation : null
/// qualityBy : "1"
/// circumstance : "6"
/// circumstanceRemark : null
/// fallAccompany : null
/// fallFactor : "1"
/// doctorDate : null
/// nurseDate : null
/// dependentsDate : null
/// evacuateHospital : null
/// passAway : null
/// damage : null
/// damageType : null
/// damageDescription : null
/// armpitTemperature : null
/// bloodPressure : null
/// pulse : null
/// bloodSugar : null
/// breathe : null
/// painVas : null
/// bloodOxygen : null
/// painAlg : null
/// limbs : null
/// anticoagulant : null
/// diagnosis : null
/// anticoagulantName : null
/// medicinalSource : null
/// medicinalSourceName : null
/// measure : null
/// nurseType : null
/// nurseTypeDate : null
/// single : null
/// singleDate : null
/// foundName : null
/// foundPosts : null
/// id : 42
/// createdBy : "73945"
/// createdDate : "2024-07-15 13:44:58"
/// updatedBy : "73945"
/// updatedDate : "2024-07-15 16:52:14"

class QualityAnomalousEvent {
  QualityAnomalousEvent(
      {this.branchName,
      this.damageLevelName,
      this.messageMan,
      this.anaomalousFalldownAttaches,
      this.findStaffName,
      this.customerName,
      this.bedId,
      this.bedNo,
      this.fallDownDate,
      this.fallFactorName,
      this.damageTypeName,
      this.circumstanceName,
      this.qualityByName,
      this.cityId,
      this.eventId,
      this.reportTime,
      this.reporterId,
      this.reporterName,
      this.workingAge,
      this.post,
      this.customerId,
      this.consciousState,
      this.falldownHighRish,
      this.screenItem,
      this.activityAnalyze,
      this.diagnose,
      this.falldownLocationType,
      this.falldownLocation,
      this.findStaffType,
      this.findStaff,
      this.falldownTimes,
      this.eventDescription,
      this.processDescription,
      this.occurrenceActivityType,
      this.occurrenceActivity,
      this.motivationType,
      this.motivation,
      this.bedrailUsage,
      this.preventiveAction,
      this.antiFalldownPlan,
      this.useSedative,
      this.sedativeName,
      this.useAntihistamine,
      this.antihistamineName,
      this.useAngiomyocardiac,
      this.angiomyocardiacName,
      this.useAnalgetic,
      this.analgeticName,
      this.useAperient,
      this.aperientName,
      this.useDiuretic,
      this.diuretic,
      this.useOtherMedicine,
      this.otherMedicineName,
      this.falldownScreenCorrectness,
      this.screenIncorrectItem,
      this.damageLevel,
      this.damageParts,
      this.isHealthStatus,
      this.healthStatus,
      this.healthStatusHemoglobin,
      this.healthStatusOther,
      this.isMedicineCure,
      this.isNarcotism,
      this.narcotismDescription,
      this.isMedicine,
      this.medicineHours,
      this.medicineDescription,
      this.isEnvironment,
      this.environmentDescription,
      this.isEquipment,
      this.equipmentDescription,
      this.equipmentDescriptionOther,
      this.isOtherFactor,
      this.otherFactorDesciption,
      this.notConfirmFalldownRisk,
      this.improperUseEquipment,
      this.improperReason,
      this.evaluationWrong,
      this.constraintNoRecord,
      this.notShift,
      this.equipmentNotSaft,
      this.notFalldownRiskEdu,
      this.otherIssue,
      this.otherIssueDescription,
      this.isElderRelationEdu,
      this.elderRelationEdu,
      this.elderRelationEduTime,
      this.isNurseEdu,
      this.nurseEdu,
      this.nurseEduTime,
      this.isAmendNursePaln,
      this.amendNursePaln,
      this.amendNursePalnTime,
      this.isEnvironmentImprovement,
      this.environmentImprovement,
      this.environmentImprovementTime,
      this.isObservationInterval,
      this.observationOriginalInterval,
      this.observationNewInterval,
      this.isOtherImprovement,
      this.otherImprovement,
      this.otherImprovementTime,
      this.executiveAuditOpion,
      this.exdcutiveAuditRate,
      this.executiveId,
      this.executiveName,
      this.executiveAuditTime,
      this.cityManagerId,
      this.cityManager,
      this.cityManagerOpinion,
      this.cityManagerAuditTime,
      this.cityManagerForward,
      this.qualityManagerId,
      this.qualityManager,
      this.qualityManagerOpion,
      this.qualityManagerAuditTime,
      this.qualityManagerForward,
      this.departDirectorId,
      this.departDirector,
      this.departDirectorOpion,
      this.departDirectorAuditTime,
      this.departDirectorForward,
      this.generalManagerId,
      this.generalManager,
      this.generalManagerOpion,
      this.generalManagerAuditTime,
      this.approveResultIncontrol,
      this.approveResultRate,
      this.approveResultOpion,
      this.currentTreatmentMeasures,
      this.branchId,
      this.tenantId,
      this.saasId,
      this.informFamilies,
      this.informDoctor,
      this.informNurse,
      this.callEmergencyNumber,
      this.bodyPositionBeforeFallingType,
      this.bodyPositionBeforeFalling,
      this.accessoriesOrEnvironmentType,
      this.accessoriesOrEnvironment,
      this.constraintStatusBeforeFalling,
      this.wearingShoesSituationType,
      this.wearingShoesSituation,
      this.accessoriesType,
      this.accessories,
      this.visionAccessories,
      this.hearingAids,
      this.remarks,
      this.generateShiftInformation,
      this.qualityBy,
      this.circumstance,
      this.circumstanceRemark,
      this.fallAccompany,
      this.fallFactor,
      this.doctorDate,
      this.nurseDate,
      this.dependentsDate,
      this.evacuateHospital,
      this.passAway,
      this.damage,
      this.damageType,
      this.damageDescription,
      this.armpitTemperature,
      this.bloodPressure,
      this.pulse,
      this.bloodSugar,
      this.breathe,
      this.painVas,
      this.bloodOxygen,
      this.painAlg,
      this.limbs,
      this.anticoagulant,
      this.diagnosis,
      this.anticoagulantName,
      this.medicinalSource,
      this.medicinalSourceName,
      this.measure,
      this.nurseType,
      this.nurseTypeDate,
      this.single,
      this.singleDate,
      this.foundName,
      this.foundPosts,
      this.id,
      this.createdBy,
      this.createdDate,
      this.updatedBy,
      this.updatedDate,
      this.otherEnvironmentDescription,
      this.sexName,
      this.sex,
      this.occurLocationType,
      this.occurLocation,
      this.causePersonType,
      this.causePerson,
      this.wrongPatternType,
      this.wrongPattern,
      this.correctDrugName,
      this.wrongDrugName,
      this.eventDisposal,
      this.isProcessFactor,
      this.processFactor,
      this.isDeviceDrugFactor,
      this.deviceDrugFactor,
      this.isEnvirnmentFactor,
      this.envirnmentFactor,
      this.isPersonnelFactor,
      this.personnelFactor,
      this.isCommunicationFactor,
        this.communicationFactor,
        this.isElderHealthFactor,
        this.elderHealthFactor,
        this.isMechanismManagermentFactor,
        this.mechanismManagermentFactor,
        this.otherFactor,
        this.abnormalResult,
        });

  QualityAnomalousEvent.fromJson(dynamic json) {
    branchName = json['branchName'];
    damageLevelName = json['damageLevelName'];
    messageMan = (json['messageMan'] as List?) ?? [];

    anaomalousFalldownAttaches =
        (json['anaomalousFalldownAttaches'] as List?) ?? [];
    findStaffName = json['findStaffName'];
    customerName = json['customerName'];
    bedId = json['bedId'];
    bedNo = json['bedNo'];
    fallDownDate = json['fallDownDate'];
    fallFactorName = json['fallFactorName'];
    damageTypeName = json['damageTypeName'];
    circumstanceName = json['circumstanceName'];
    qualityByName = json['qualityByName'];
    cityId = json['cityId'];
    eventId = json['eventId'];
    reportTime = json['reportTime'];
    reporterId = json['reporterId'];
    reporterName = json['reporterName'];
    workingAge = json['workingAge'];
    post = json['post'];
    customerId = json['customerId'];
    consciousState = json['consciousState'];
    falldownHighRish = json['falldownHighRish'];
    screenItem = json['screenItem'];
    activityAnalyze = json['activityAnalyze'];
    diagnose = json['diagnose'];
    falldownLocationType = json['falldownLocationType'];
    falldownLocation = json['falldownLocation'];
    findStaffType = json['findStaffType'];
    findStaff = json['findStaff'];
    falldownTimes = json['falldownTimes'];
    eventDescription = json['eventDescription'];
    processDescription = json['processDescription'];
    occurrenceActivityType = json['occurrenceActivityType'];
    occurrenceActivity = json['occurrenceActivity'];
    motivationType = json['motivationType'];
    motivation = json['motivation'];
    bedrailUsage = json['bedrailUsage'];
    preventiveAction = json['preventiveAction'];
    antiFalldownPlan = json['antiFalldownPlan'];
    useSedative = json['useSedative'];
    sedativeName = json['sedativeName'];
    useAntihistamine = json['useAntihistamine'];
    antihistamineName = json['antihistamineName'];
    useAngiomyocardiac = json['useAngiomyocardiac'];
    angiomyocardiacName = json['angiomyocardiacName'];
    useAnalgetic = json['useAnalgetic'];
    analgeticName = json['analgeticName'];
    useAperient = json['useAperient'];
    aperientName = json['aperientName'];
    useDiuretic = json['useDiuretic'];
    diuretic = json['diuretic'];
    useOtherMedicine = json['useOtherMedicine'];
    otherMedicineName = json['otherMedicineName'];
    falldownScreenCorrectness = json['falldownScreenCorrectness'];
    screenIncorrectItem = json['screenIncorrectItem'];
    damageLevel = json['damageLevel'];
    damageParts = json['damageParts'];
    isHealthStatus = json['isHealthStatus'];
    healthStatus = json['healthStatus'];
    healthStatusHemoglobin = json['healthStatusHemoglobin'];
    healthStatusOther = json['healthStatusOther'];
    isMedicineCure = json['isMedicineCure'];
    isNarcotism = json['isNarcotism'];
    narcotismDescription = json['narcotismDescription'];
    isMedicine = json['isMedicine'];
    medicineHours = json['medicineHours'];
    medicineDescription = json['medicineDescription'];
    isEnvironment = json['isEnvironment'];
    environmentDescription = json['environmentDescription'];
    isEquipment = json['isEquipment'];
    equipmentDescription = json['equipmentDescription'];
    equipmentDescriptionOther = json['equipmentDescriptionOther'];
    isOtherFactor = json['isOtherFactor'];
    otherFactorDesciption = json['otherFactorDesciption'];
    notConfirmFalldownRisk = json['notConfirmFalldownRisk'];
    improperUseEquipment = json['improperUseEquipment'];
    improperReason = json['improperReason'];
    evaluationWrong = json['evaluationWrong'];
    constraintNoRecord = json['constraintNoRecord'];
    notShift = json['notShift'];
    equipmentNotSaft = json['equipmentNotSaft'];
    notFalldownRiskEdu = json['notFalldownRiskEdu'];
    otherIssue = json['otherIssue'];
    otherIssueDescription = json['otherIssueDescription'];
    isElderRelationEdu = json['isElderRelationEdu'];
    elderRelationEdu = json['elderRelationEdu'];
    elderRelationEduTime = json['elderRelationEduTime'];
    isNurseEdu = json['isNurseEdu'];
    nurseEdu = json['nurseEdu'];
    nurseEduTime = json['nurseEduTime'];
    isAmendNursePaln = json['isAmendNursePaln'];
    amendNursePaln = json['amendNursePaln'];
    amendNursePalnTime = json['amendNursePalnTime'];
    isEnvironmentImprovement = json['isEnvironmentImprovement'];
    environmentImprovement = json['environmentImprovement'];
    environmentImprovementTime = json['environmentImprovementTime'];
    isObservationInterval = json['isObservationInterval'];
    observationOriginalInterval = json['observationOriginalInterval'];
    observationNewInterval = json['observationNewInterval'];
    isOtherImprovement = json['isOtherImprovement'];
    otherImprovement = json['otherImprovement'];
    otherImprovementTime = json['otherImprovementTime'];
    executiveAuditOpion = json['executiveAuditOpion'];
    exdcutiveAuditRate = json['exdcutiveAuditRate'];
    executiveId = json['executiveId'];
    executiveName = json['executiveName'];
    executiveAuditTime = json['executiveAuditTime'];
    cityManagerId = json['cityManagerId'];
    cityManager = json['cityManager'];
    cityManagerOpinion = json['cityManagerOpinion'];
    cityManagerAuditTime = json['cityManagerAuditTime'];
    cityManagerForward = json['cityManagerForward'];
    qualityManagerId = json['qualityManagerId'];
    qualityManager = json['qualityManager'];
    qualityManagerOpion = json['qualityManagerOpion'];
    qualityManagerAuditTime = json['qualityManagerAuditTime'];
    qualityManagerForward = json['qualityManagerForward'];
    departDirectorId = json['departDirectorId'];
    departDirector = json['departDirector'];
    departDirectorOpion = json['departDirectorOpion'];
    departDirectorAuditTime = json['departDirectorAuditTime'];
    departDirectorForward = json['departDirectorForward'];
    generalManagerId = json['generalManagerId'];
    generalManager = json['generalManager'];
    generalManagerOpion = json['generalManagerOpion'];
    generalManagerAuditTime = json['generalManagerAuditTime'];
    approveResultIncontrol = json['approveResultIncontrol'];
    approveResultRate = json['approveResultRate'];
    approveResultOpion = json['approveResultOpion'];
    currentTreatmentMeasures = json['currentTreatmentMeasures'];
    branchId = json['branchId'];
    tenantId = json['tenantId'];
    saasId = json['saasId'];
    informFamilies = json['informFamilies'];
    informDoctor = json['informDoctor'];
    informNurse = json['informNurse'];
    callEmergencyNumber = json['callEmergencyNumber'];
    bodyPositionBeforeFallingType = json['bodyPositionBeforeFallingType'];
    bodyPositionBeforeFalling = json['bodyPositionBeforeFalling'];
    accessoriesOrEnvironmentType = json['accessoriesOrEnvironmentType'];
    accessoriesOrEnvironment = json['accessoriesOrEnvironment'];
    constraintStatusBeforeFalling = json['constraintStatusBeforeFalling'];
    wearingShoesSituationType = json['wearingShoesSituationType'];
    wearingShoesSituation = json['wearingShoesSituation'];
    accessoriesType = json['accessoriesType'];
    accessories = json['accessories'] is String
        ? num.tryParse(json['accessories'])
        : json['accessories'];

    visionAccessories = json['visionAccessories'];
    hearingAids = json['hearingAids'];
    remarks = json['remarks'];
    generateShiftInformation = json['generateShiftInformation'];
    qualityBy = json['qualityBy'];
    circumstance = json['circumstance'];
    circumstanceRemark = json['circumstanceRemark'];
    fallAccompany = json['fallAccompany'];
    fallFactor = json['fallFactor'];
    doctorDate = json['doctorDate'];
    nurseDate = json['nurseDate'];
    dependentsDate = json['dependentsDate'];
    evacuateHospital = json['evacuateHospital'];

    passAway = json['passAway'];
    damage = json['damage'];
    damageType = json['damageType'];
    damageDescription = json['damageDescription'];
    armpitTemperature = json['armpitTemperature'];
    bloodPressure = json['bloodPressure'];
    pulse = json['pulse'];
    bloodSugar = json['bloodSugar'];
    breathe = json['breathe'];
    painVas = json['painVas'];
    bloodOxygen = json['bloodOxygen'];
    painAlg = json['painAlg'];
    limbs = json['limbs'];

    anticoagulant = json['anticoagulant'];
    diagnosis = json['diagnosis'];
    anticoagulantName = json['anticoagulantName'];
    medicinalSource = json['medicinalSource'];
    medicinalSourceName = json['medicinalSourceName'];

    measure = json['measure'];
    nurseType = json['nurseType'];
    nurseTypeDate = json['nurseTypeDate'];
    single = json['single'];
    singleDate = json['singleDate'];
    foundName = json['foundName'];
    foundPosts = json['foundPosts'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    otherEnvironmentDescription = json['otherEnvironmentDescription'];
    sexName = json['sexName'];
    sex = json['sex'];
    occurLocationType = json['occurLocationType'];
    occurLocation = json['occurLocation'];
    causePersonType = json['causePersonType'];
    causePerson = json['causePerson'];
    wrongPatternType = json['wrongPatternType'];
    wrongPattern = json['wrongPattern'];
    correctDrugName = json['correctDrugName'];
    wrongDrugName = json['wrongDrugName'];
    eventDisposal = json['eventDisposal'];
    isProcessFactor = json['isProcessFactor'];
    processFactor = json['processFactor'];
    isDeviceDrugFactor = json['isDeviceDrugFactor'];
    deviceDrugFactor = json['deviceDrugFactor'];
    isEnvirnmentFactor = json['isEnvirnmentFactor'];
    envirnmentFactor = json['envirnmentFactor'];
    isPersonnelFactor = json['isPersonnelFactor'];
    personnelFactor = json['personnelFactor'];
    isCommunicationFactor = json['isCommunicationFactor'];
    communicationFactor = json['communicationFactor'];

    branchName = json['branchName'];
    abnormalResultName = json['abnormalResultName'];
    findStaffName = json['findStaffName'];
    cityId = json['cityId'];
    eventId = json['eventId'];
    reportTime = json['reportTime'];
    reporterName = json['reporterName'];
    workingAge = json['workingAge'];
    post = json['post'];
    customerId = json['customerId'];
    consciousState = json['consciousState'];
    activityAnalyze = json['activityAnalyze'];
    diagnose = json['diagnose'];
    occurLocationType = json['occurLocationType'];
    occurLocation = json['occurLocation'];
    findStaffType = json['findStaffType'];
    findStaff = json['findStaff'];
    causePersonType = json['causePersonType'];
    causePerson = json['causePerson'];
    wrongPatternType = json['wrongPatternType'];
    wrongPattern = json['wrongPattern'];
    correctDrugName = json['correctDrugName'];
    wrongDrugName = json['wrongDrugName'];
    eventDescription = json['eventDescription'];
    eventDisposal = json['eventDisposal'];
    isProcessFactor = json['isProcessFactor'];
    processFactor = json['processFactor'];
    isDeviceDrugFactor = json['isDeviceDrugFactor'];
    deviceDrugFactor = json['deviceDrugFactor'];
    isEnvirnmentFactor = json['isEnvirnmentFactor'];
    envirnmentFactor = json['envirnmentFactor'];
    isPersonnelFactor = json['isPersonnelFactor'];
    personnelFactor = json['personnelFactor'];
    isCommunicationFactor = json['isCommunicationFactor'];
    communicationFactor = json['communicationFactor'];
    isElderHealthFactor = json['isElderHealthFactor'];
    elderHealthFactor = json['elderHealthFactor'];
    isMechanismManagermentFactor = json['isMechanismManagermentFactor'];
    mechanismManagermentFactor = json['mechanismManagermentFactor'];
    isOtherFactor = json['isOtherFactor'];
    otherFactor = json['otherFactor'];
    abnormalResult = json['abnormalResult'];
    isElderRelationEdu = json['isElderRelationEdu'];
    elderRelationEdu = json['elderRelationEdu'];
    elderRelationEduTime = json['elderRelationEduTime'];
    isNurseEdu = json['isNurseEdu'];
    nurseEdu = json['nurseEdu'];
    nurseEduTime = json['nurseEduTime'];
    isAmendNursePaln = json['isAmendNursePaln'];
    amendNursePaln = json['amendNursePaln'];
    amendNursePalnTime = json['amendNursePalnTime'];
    isObservationInterval = json['isObservationInterval'];
    observationOriginalInterval = json['observationOriginalInterval'];
    observationNewInterval = json['observationNewInterval'];
    isOtherImprovement = json['isOtherImprovement'];
    otherImprovement = json['otherImprovement'];
    otherImprovementTime = json['otherImprovementTime'];
    executiveAuditOpion = json['executiveAuditOpion'];
    exdcutiveAuditRate = json['exdcutiveAuditRate'];
    executiveId = json['executiveId'];
    executiveName = json['executiveName'];
    executiveAuditTime = json['executiveAuditTime'];
    cityManagerId = json['cityManagerId'];
    cityManager = json['cityManager'];
    cityManagerOpinion = json['cityManagerOpinion'];
    cityManagerAuditTime = json['cityManagerAuditTime'];
    cityManagerForward = json['cityManagerForward'];
    qualityManagerId = json['qualityManagerId'];
    qualityManager = json['qualityManager'];
    qualityManagerOpion = json['qualityManagerOpion'];
    qualityManagerAuditTime = json['qualityManagerAuditTime'];
    qualityManagerForward = json['qualityManagerForward'];
    departDirectorId = json['departDirectorId'];
    departDirector = json['departDirector'];
    departDirectorOpion = json['departDirectorOpion'];
    departDirectorAuditTime = json['departDirectorAuditTime'];
    departDirectorForward = json['departDirectorForward'];
    generalManagerId = json['generalManagerId'];
    generalManager = json['generalManager'];
    generalManagerOpion = json['generalManagerOpion'];
    generalManagerAuditTime = json['generalManagerAuditTime'];
    approveResultIncontrol = json['approveResultIncontrol'];
    approveResultRate = json['approveResultRate'];
    approveResultOpion = json['approveResultOpion'];
    branchId = json['branchId'];
    tenantId = json['tenantId'];
    saasId = json['saasId'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    envirnmentFactorTime = json['envirnmentFactorTime'];
  }

  String? branchName;
  dynamic damageLevelName;
  List<dynamic>? messageMan;
  List<dynamic>? anaomalousFalldownAttaches;
  dynamic findStaffName;
  String? customerName;
  dynamic bedId;
  dynamic bedNo;
  String? sexName;
  dynamic sex;
  dynamic fallDownDate;
  String? fallFactorName;
  dynamic damageTypeName;
  dynamic circumstanceName;
  String? qualityByName;
  num? cityId;
  num? eventId;
  String? reportTime;
  dynamic reporterId;
  String? reporterName;
  dynamic workingAge;
  String? post;
  num? customerId;
  String? consciousState;
  num? falldownHighRish;

  String get falldownHighRishName => falldownHighRish == 0
      ? '否'
      : falldownHighRish == 1
          ? '是'
          : "";
  String? screenItem;
  String? activityAnalyze;
  num? occurLocationType;
  String? occurLocation;
  dynamic diagnose;
  num? falldownLocationType;
  dynamic falldownLocation;
  num? findStaffType;
  num? causePersonType;
  String? causePerson;
  num? wrongPatternType;
  String? wrongPattern;
  String? correctDrugName;
  String? wrongDrugName;
  String? findStaff;
  num? falldownTimes;
  String? eventDescription;
  String? eventDisposal;
  num? isProcessFactor;
  num? isDeviceDrugFactor;
  num? isEnvirnmentFactor;
  String? envirnmentFactor;
  String? deviceDrugFactor;
  String? processFactor;
  String? processDescription;
  num? occurrenceActivityType;
  dynamic occurrenceActivity;
  num? motivationType;
  dynamic motivation;
  num? bedrailUsage;
  num? preventiveAction;
  num? antiFalldownPlan;
  num? useSedative;
  dynamic sedativeName;
  num? useAntihistamine;
  dynamic antihistamineName;
  num? useAngiomyocardiac;
  dynamic angiomyocardiacName;
  num? useAnalgetic;
  dynamic analgeticName;
  dynamic useAperient;
  dynamic aperientName;
  dynamic useDiuretic;
  dynamic diuretic;
  dynamic useOtherMedicine;
  dynamic otherMedicineName;
  num? falldownScreenCorrectness;
  String? screenIncorrectItem;
  dynamic damageLevel;
  String? damageParts;
  num? isHealthStatus;
  String? healthStatus;
  num? healthStatusHemoglobin;
  dynamic healthStatusOther;
  dynamic isMedicineCure;
  num? isNarcotism;
  dynamic narcotismDescription;
  dynamic isMedicine;
  num? medicineHours;
  dynamic medicineDescription;
  dynamic isEnvironment;
  String? environmentDescription;
  String? otherEnvironmentDescription;
  dynamic isEquipment;
  String? equipmentDescription;
  dynamic equipmentDescriptionOther;
  dynamic isOtherFactor;
  dynamic otherFactorDesciption;
  dynamic notConfirmFalldownRisk;
  dynamic improperUseEquipment;
  dynamic improperReason;
  dynamic evaluationWrong;
  dynamic constraintNoRecord;
  dynamic notShift;
  dynamic equipmentNotSaft;
  dynamic notFalldownRiskEdu;
  dynamic otherIssue;
  dynamic otherIssueDescription;
  dynamic isElderRelationEdu;
  dynamic elderRelationEdu;
  dynamic elderRelationEduTime;
  dynamic isNurseEdu;
  dynamic nurseEdu;
  dynamic nurseEduTime;
  dynamic isAmendNursePaln;
  dynamic amendNursePaln;
  dynamic amendNursePalnTime;
  String? envirnmentFactorTime;
  dynamic isEnvironmentImprovement;
  dynamic environmentImprovement;
  dynamic environmentImprovementTime;
  dynamic isObservationInterval;
  num? observationOriginalInterval;
  num? observationNewInterval;
  dynamic isOtherImprovement;
  dynamic otherImprovement;
  dynamic otherImprovementTime;
  dynamic executiveAuditOpion;
  dynamic exdcutiveAuditRate;
  dynamic executiveId;
  dynamic executiveName;
  dynamic executiveAuditTime;
  dynamic cityManagerId;
  dynamic cityManager;
  dynamic cityManagerOpinion;
  dynamic cityManagerAuditTime;
  dynamic cityManagerForward;
  dynamic qualityManagerId;
  dynamic qualityManager;
  dynamic qualityManagerOpion;
  dynamic qualityManagerAuditTime;
  dynamic qualityManagerForward;
  dynamic departDirectorId;
  dynamic departDirector;
  dynamic departDirectorOpion;
  dynamic departDirectorAuditTime;
  dynamic departDirectorForward;
  dynamic generalManagerId;
  dynamic generalManager;
  dynamic generalManagerOpion;
  dynamic generalManagerAuditTime;
  dynamic approveResultIncontrol;
  dynamic approveResultRate;
  dynamic approveResultOpion;
  dynamic currentTreatmentMeasures;
  num? branchId;
  num? tenantId;
  num? saasId;
  num? informFamilies;
  num? informDoctor;
  num? informNurse;
  num? callEmergencyNumber;
  num? bodyPositionBeforeFallingType;
  dynamic bodyPositionBeforeFalling;
  num? accessoriesOrEnvironmentType;
  dynamic accessoriesOrEnvironment;
  num? constraintStatusBeforeFalling;
  num? wearingShoesSituationType;
  dynamic wearingShoesSituation;
  num? accessoriesType;
  num? accessories;
  num? visionAccessories;
  num? hearingAids;
  dynamic remarks;
  dynamic generateShiftInformation;
  String? qualityBy;
  String? circumstance;
  String? circumstanceRemark;
  num? fallAccompany;
  String? fallFactor;
  String? doctorDate;
  String? nurseDate;
  String? dependentsDate;
  num? evacuateHospital;
  num? passAway;
  num? damage;
  dynamic damageType;
  dynamic damageDescription;
  dynamic armpitTemperature;
  dynamic bloodPressure;
  dynamic pulse;
  dynamic bloodSugar;
  dynamic breathe;
  dynamic painVas;
  dynamic bloodOxygen;
  dynamic painAlg;
  num? limbs;
  num? anticoagulant;
  dynamic diagnosis;
  dynamic anticoagulantName;
  num? medicinalSource;
  dynamic medicinalSourceName;
  dynamic measure;
  num? nurseType;
  String? nurseTypeDate;
  num? single;
  String? singleDate;
  dynamic foundName;
  dynamic foundPosts;
  num? id;
  String? createdBy;
  String? createdDate;
  String? updatedBy;
  String? updatedDate;
  num? isPersonnelFactor;
  String? personnelFactor;
  num? isCommunicationFactor;
  String? communicationFactor;

  String? abnormalResultName;
  dynamic isElderHealthFactor;
  dynamic elderHealthFactor;
  dynamic isMechanismManagermentFactor;
  dynamic mechanismManagermentFactor;
  dynamic otherFactor;
  num? abnormalResult;



  String get medicineInfo {
    var list = <String?>[
      sedativeName,
      antihistamineName,
      angiomyocardiacName,
      analgeticName,
      aperientName,
      diuretic,
      otherMedicineName
    ];
    list.removeWhere((element) => element.isNullOrEmpty());
    return list.join(",");
  }

  String get healthReason {
    var list = <String?>[];
    if (healthStatus?.contains('1') == true) {
      list.add('意识不清');
    }
    if (healthStatus?.contains('2') == true) {
      list.add('睡眠不足');
    }
    if (healthStatus?.contains('3') == true) {
      list.add('步态平衡异常');
    }

    if (healthStatus?.contains('4') == true) {
      list.add('血色素低头晕 ${healthStatusHemoglobin ?? ""}');
    }

    if (healthStatus?.contains('5') == true) {
      list.add('其他 ${healthStatusOther ?? ""}');
    }
    return list.join(",");
  }

  QualityAnomalousEvent copyWith({
    String? branchName,
    dynamic damageLevelName,
    List<dynamic>? messageMan,
    List<dynamic>? anaomalousFalldownAttaches,
    dynamic findStaffName,
    String? customerName,
    dynamic bedId,
    dynamic bedNo,
    dynamic fallDownDate,
    String? fallFactorName,
    dynamic damageTypeName,
    dynamic circumstanceName,
    String? qualityByName,
    num? cityId,
    num? eventId,
    String? reportTime,
    dynamic reporterId,
    String? reporterName,
    dynamic workingAge,
    String? post,
    num? customerId,
    String? consciousState,
    dynamic falldownHighRish,
    dynamic screenItem,
    String? activityAnalyze,
    dynamic diagnose,
    num? falldownLocationType,
    dynamic falldownLocation,
    dynamic findStaffType,
    String? findStaff,
    dynamic falldownTimes,
    String? eventDescription,
    String? processDescription,
    num? occurrenceActivityType,
    dynamic occurrenceActivity,
    num? motivationType,
    dynamic motivation,
    num? bedrailUsage,
    dynamic preventiveAction,
    dynamic antiFalldownPlan,
    num? useSedative,
    dynamic sedativeName,
    num? useAntihistamine,
    dynamic antihistamineName,
    num? useAngiomyocardiac,
    dynamic angiomyocardiacName,
    num? useAnalgetic,
    dynamic analgeticName,
    dynamic useAperient,
    dynamic aperientName,
    dynamic useDiuretic,
    dynamic diuretic,
    dynamic useOtherMedicine,
    dynamic otherMedicineName,
    num? falldownScreenCorrectness,
    String? screenIncorrectItem,
    dynamic damageLevel,
    String? damageParts,
    num? isHealthStatus,
    String? healthStatus,
    dynamic healthStatusHemoglobin,
    dynamic healthStatusOther,
    dynamic isMedicineCure,
    num? isNarcotism,
    dynamic narcotismDescription,
    dynamic isMedicine,
    dynamic medicineHours,
    dynamic medicineDescription,
    dynamic isEnvironment,
    String? environmentDescription,
    dynamic isEquipment,
    String? equipmentDescription,
    dynamic equipmentDescriptionOther,
    dynamic isOtherFactor,
    dynamic otherFactorDesciption,
    dynamic notConfirmFalldownRisk,
    dynamic improperUseEquipment,
    dynamic improperReason,
    dynamic evaluationWrong,
    dynamic constraintNoRecord,
    dynamic notShift,
    dynamic equipmentNotSaft,
    dynamic notFalldownRiskEdu,
    dynamic otherIssue,
    dynamic otherIssueDescription,
    dynamic isElderRelationEdu,
    dynamic elderRelationEdu,
    dynamic elderRelationEduTime,
    dynamic isNurseEdu,
    dynamic nurseEdu,
    dynamic nurseEduTime,
    dynamic isAmendNursePaln,
    dynamic amendNursePaln,
    dynamic amendNursePalnTime,
    dynamic isEnvironmentImprovement,
    dynamic environmentImprovement,
    dynamic environmentImprovementTime,
    dynamic isObservationInterval,
    dynamic observationOriginalInterval,
    dynamic observationNewInterval,
    dynamic isOtherImprovement,
    dynamic otherImprovement,
    dynamic otherImprovementTime,
    dynamic executiveAuditOpion,
    dynamic exdcutiveAuditRate,
    dynamic executiveId,
    dynamic executiveName,
    dynamic executiveAuditTime,
    dynamic cityManagerId,
    dynamic cityManager,
    dynamic cityManagerOpinion,
    dynamic cityManagerAuditTime,
    dynamic cityManagerForward,
    dynamic qualityManagerId,
    dynamic qualityManager,
    dynamic qualityManagerOpion,
    dynamic qualityManagerAuditTime,
    dynamic qualityManagerForward,
    dynamic departDirectorId,
    dynamic departDirector,
    dynamic departDirectorOpion,
    dynamic departDirectorAuditTime,
    dynamic departDirectorForward,
    dynamic generalManagerId,
    dynamic generalManager,
    dynamic generalManagerOpion,
    dynamic generalManagerAuditTime,
    dynamic approveResultIncontrol,
    dynamic approveResultRate,
    dynamic approveResultOpion,
    dynamic currentTreatmentMeasures,
    num? branchId,
    num? tenantId,
    num? saasId,
    num? informFamilies,
    num? informDoctor,
    num? informNurse,
    num? callEmergencyNumber,
    num? bodyPositionBeforeFallingType,
    dynamic bodyPositionBeforeFalling,
    num? accessoriesOrEnvironmentType,
    dynamic accessoriesOrEnvironment,
    num? constraintStatusBeforeFalling,
    num? wearingShoesSituationType,
    dynamic wearingShoesSituation,
    num? accessoriesType,
    dynamic accessories,
    num? visionAccessories,
    num? hearingAids,
    dynamic remarks,
    dynamic generateShiftInformation,
    String? qualityBy,
    String? circumstance,
    dynamic circumstanceRemark,
    dynamic fallAccompany,
    String? fallFactor,
    dynamic doctorDate,
    dynamic nurseDate,
    dynamic dependentsDate,
    dynamic evacuateHospital,
    dynamic passAway,
    dynamic damage,
    dynamic damageType,
    dynamic damageDescription,
    dynamic armpitTemperature,
    dynamic bloodPressure,
    dynamic pulse,
    dynamic bloodSugar,
    dynamic breathe,
    dynamic painVas,
    dynamic bloodOxygen,
    dynamic painAlg,
    dynamic limbs,
    dynamic anticoagulant,
    dynamic diagnosis,
    dynamic anticoagulantName,
    dynamic medicinalSource,
    dynamic medicinalSourceName,
    dynamic measure,
    dynamic nurseType,
    dynamic nurseTypeDate,
    dynamic single,
    dynamic singleDate,
    dynamic foundName,
    dynamic foundPosts,
    num? id,
    String? createdBy,
    String? createdDate,
    String? updatedBy,
    String? updatedDate,
    String? otherEnvironmentDescription,
    String? sexName,
    dynamic sex,
    num? occurLocationType,
    String? occurLocation,
    num? causePersonType,
    String? causePerson,
    num? wrongPatternType,
    String? wrongPattern,
    String? correctDrugName,
    String? wrongDrugName,
    String? eventDisposal,
    num? isProcessFactor,
    String? processFactor,
    num? isDeviceDrugFactor,
    String? deviceDrugFactor,
    num? isEnvirnmentFactor,
    num? isPersonnelFactor,
    String? envirnmentFactor,
    String? personnelFactor,
    num? isCommunicationFactor,
  }) =>
      QualityAnomalousEvent(
        branchName: branchName ?? this.branchName,
        damageLevelName: damageLevelName ?? this.damageLevelName,
        messageMan: messageMan ?? this.messageMan,
        anaomalousFalldownAttaches:
            anaomalousFalldownAttaches ?? this.anaomalousFalldownAttaches,
        findStaffName: findStaffName ?? this.findStaffName,
        customerName: customerName ?? this.customerName,
        bedId: bedId ?? this.bedId,
        bedNo: bedNo ?? this.bedNo,
        fallDownDate: fallDownDate ?? this.fallDownDate,
        fallFactorName: fallFactorName ?? this.fallFactorName,
        damageTypeName: damageTypeName ?? this.damageTypeName,
        circumstanceName: circumstanceName ?? this.circumstanceName,
        qualityByName: qualityByName ?? this.qualityByName,
        cityId: cityId ?? this.cityId,
        eventId: eventId ?? this.eventId,
        reportTime: reportTime ?? this.reportTime,
        reporterId: reporterId ?? this.reporterId,
        reporterName: reporterName ?? this.reporterName,
        workingAge: workingAge ?? this.workingAge,
        post: post ?? this.post,
        customerId: customerId ?? this.customerId,
        consciousState: consciousState ?? this.consciousState,
        falldownHighRish: falldownHighRish ?? this.falldownHighRish,
        screenItem: screenItem ?? this.screenItem,
        activityAnalyze: activityAnalyze ?? this.activityAnalyze,
        diagnose: diagnose ?? this.diagnose,
        falldownLocationType: falldownLocationType ?? this.falldownLocationType,
        falldownLocation: falldownLocation ?? this.falldownLocation,
        findStaffType: findStaffType ?? this.findStaffType,
        findStaff: findStaff ?? this.findStaff,
        falldownTimes: falldownTimes ?? this.falldownTimes,
        eventDescription: eventDescription ?? this.eventDescription,
        processDescription: processDescription ?? this.processDescription,
        occurrenceActivityType:
            occurrenceActivityType ?? this.occurrenceActivityType,
        occurrenceActivity: occurrenceActivity ?? this.occurrenceActivity,
        motivationType: motivationType ?? this.motivationType,
        motivation: motivation ?? this.motivation,
        bedrailUsage: bedrailUsage ?? this.bedrailUsage,
        preventiveAction: preventiveAction ?? this.preventiveAction,
        antiFalldownPlan: antiFalldownPlan ?? this.antiFalldownPlan,
        useSedative: useSedative ?? this.useSedative,
        sedativeName: sedativeName ?? this.sedativeName,
        useAntihistamine: useAntihistamine ?? this.useAntihistamine,
        antihistamineName: antihistamineName ?? this.antihistamineName,
        useAngiomyocardiac: useAngiomyocardiac ?? this.useAngiomyocardiac,
        angiomyocardiacName: angiomyocardiacName ?? this.angiomyocardiacName,
        useAnalgetic: useAnalgetic ?? this.useAnalgetic,
        analgeticName: analgeticName ?? this.analgeticName,
        useAperient: useAperient ?? this.useAperient,
        aperientName: aperientName ?? this.aperientName,
        useDiuretic: useDiuretic ?? this.useDiuretic,
        diuretic: diuretic ?? this.diuretic,
        useOtherMedicine: useOtherMedicine ?? this.useOtherMedicine,
        otherMedicineName: otherMedicineName ?? this.otherMedicineName,
        falldownScreenCorrectness:
            falldownScreenCorrectness ?? this.falldownScreenCorrectness,
        screenIncorrectItem: screenIncorrectItem ?? this.screenIncorrectItem,
        damageLevel: damageLevel ?? this.damageLevel,
        damageParts: damageParts ?? this.damageParts,
        isHealthStatus: isHealthStatus ?? this.isHealthStatus,
        healthStatus: healthStatus ?? this.healthStatus,
        healthStatusHemoglobin:
            healthStatusHemoglobin ?? this.healthStatusHemoglobin,
        healthStatusOther: healthStatusOther ?? this.healthStatusOther,
        isMedicineCure: isMedicineCure ?? this.isMedicineCure,
        isNarcotism: isNarcotism ?? this.isNarcotism,
        narcotismDescription: narcotismDescription ?? this.narcotismDescription,
        isMedicine: isMedicine ?? this.isMedicine,
        medicineHours: medicineHours ?? this.medicineHours,
        medicineDescription: medicineDescription ?? this.medicineDescription,
        isEnvironment: isEnvironment ?? this.isEnvironment,
        environmentDescription:
            environmentDescription ?? this.environmentDescription,
        isEquipment: isEquipment ?? this.isEquipment,
        equipmentDescription: equipmentDescription ?? this.equipmentDescription,
        equipmentDescriptionOther:
            equipmentDescriptionOther ?? this.equipmentDescriptionOther,
        isOtherFactor: isOtherFactor ?? this.isOtherFactor,
        otherFactorDesciption:
            otherFactorDesciption ?? this.otherFactorDesciption,
        notConfirmFalldownRisk:
            notConfirmFalldownRisk ?? this.notConfirmFalldownRisk,
        improperUseEquipment: improperUseEquipment ?? this.improperUseEquipment,
        improperReason: improperReason ?? this.improperReason,
        evaluationWrong: evaluationWrong ?? this.evaluationWrong,
        constraintNoRecord: constraintNoRecord ?? this.constraintNoRecord,
        notShift: notShift ?? this.notShift,
        equipmentNotSaft: equipmentNotSaft ?? this.equipmentNotSaft,
        notFalldownRiskEdu: notFalldownRiskEdu ?? this.notFalldownRiskEdu,
        otherIssue: otherIssue ?? this.otherIssue,
        otherIssueDescription:
            otherIssueDescription ?? this.otherIssueDescription,
        isElderRelationEdu: isElderRelationEdu ?? this.isElderRelationEdu,
        elderRelationEdu: elderRelationEdu ?? this.elderRelationEdu,
        elderRelationEduTime: elderRelationEduTime ?? this.elderRelationEduTime,
        isNurseEdu: isNurseEdu ?? this.isNurseEdu,
        nurseEdu: nurseEdu ?? this.nurseEdu,
        nurseEduTime: nurseEduTime ?? this.nurseEduTime,
        isAmendNursePaln: isAmendNursePaln ?? this.isAmendNursePaln,
        amendNursePaln: amendNursePaln ?? this.amendNursePaln,
        amendNursePalnTime: amendNursePalnTime ?? this.amendNursePalnTime,
        isEnvironmentImprovement:
            isEnvironmentImprovement ?? this.isEnvironmentImprovement,
        environmentImprovement:
            environmentImprovement ?? this.environmentImprovement,
        environmentImprovementTime:
            environmentImprovementTime ?? this.environmentImprovementTime,
        isObservationInterval:
            isObservationInterval ?? this.isObservationInterval,
        observationOriginalInterval:
            observationOriginalInterval ?? this.observationOriginalInterval,
        observationNewInterval:
            observationNewInterval ?? this.observationNewInterval,
        isOtherImprovement: isOtherImprovement ?? this.isOtherImprovement,
        otherImprovement: otherImprovement ?? this.otherImprovement,
        otherImprovementTime: otherImprovementTime ?? this.otherImprovementTime,
        executiveAuditOpion: executiveAuditOpion ?? this.executiveAuditOpion,
        exdcutiveAuditRate: exdcutiveAuditRate ?? this.exdcutiveAuditRate,
        executiveId: executiveId ?? this.executiveId,
        executiveName: executiveName ?? this.executiveName,
        executiveAuditTime: executiveAuditTime ?? this.executiveAuditTime,
        cityManagerId: cityManagerId ?? this.cityManagerId,
        cityManager: cityManager ?? this.cityManager,
        cityManagerOpinion: cityManagerOpinion ?? this.cityManagerOpinion,
        cityManagerAuditTime: cityManagerAuditTime ?? this.cityManagerAuditTime,
        cityManagerForward: cityManagerForward ?? this.cityManagerForward,
        qualityManagerId: qualityManagerId ?? this.qualityManagerId,
        qualityManager: qualityManager ?? this.qualityManager,
        qualityManagerOpion: qualityManagerOpion ?? this.qualityManagerOpion,
        qualityManagerAuditTime:
            qualityManagerAuditTime ?? this.qualityManagerAuditTime,
        qualityManagerForward:
            qualityManagerForward ?? this.qualityManagerForward,
        departDirectorId: departDirectorId ?? this.departDirectorId,
        departDirector: departDirector ?? this.departDirector,
        departDirectorOpion: departDirectorOpion ?? this.departDirectorOpion,
        departDirectorAuditTime:
            departDirectorAuditTime ?? this.departDirectorAuditTime,
        departDirectorForward:
            departDirectorForward ?? this.departDirectorForward,
        generalManagerId: generalManagerId ?? this.generalManagerId,
        generalManager: generalManager ?? this.generalManager,
        generalManagerOpion: generalManagerOpion ?? this.generalManagerOpion,
        generalManagerAuditTime:
            generalManagerAuditTime ?? this.generalManagerAuditTime,
        approveResultIncontrol:
            approveResultIncontrol ?? this.approveResultIncontrol,
        approveResultRate: approveResultRate ?? this.approveResultRate,
        approveResultOpion: approveResultOpion ?? this.approveResultOpion,
        currentTreatmentMeasures:
            currentTreatmentMeasures ?? this.currentTreatmentMeasures,
        branchId: branchId ?? this.branchId,
        tenantId: tenantId ?? this.tenantId,
        saasId: saasId ?? this.saasId,
        informFamilies: informFamilies ?? this.informFamilies,
        informDoctor: informDoctor ?? this.informDoctor,
        informNurse: informNurse ?? this.informNurse,
        callEmergencyNumber: callEmergencyNumber ?? this.callEmergencyNumber,
        bodyPositionBeforeFallingType:
            bodyPositionBeforeFallingType ?? this.bodyPositionBeforeFallingType,
        bodyPositionBeforeFalling:
            bodyPositionBeforeFalling ?? this.bodyPositionBeforeFalling,
        accessoriesOrEnvironmentType:
            accessoriesOrEnvironmentType ?? this.accessoriesOrEnvironmentType,
        accessoriesOrEnvironment:
            accessoriesOrEnvironment ?? this.accessoriesOrEnvironment,
        constraintStatusBeforeFalling:
            constraintStatusBeforeFalling ?? this.constraintStatusBeforeFalling,
        wearingShoesSituationType:
            wearingShoesSituationType ?? this.wearingShoesSituationType,
        wearingShoesSituation:
            wearingShoesSituation ?? this.wearingShoesSituation,
        accessoriesType: accessoriesType ?? this.accessoriesType,
        accessories: accessories ?? this.accessories,
        visionAccessories: visionAccessories ?? this.visionAccessories,
        hearingAids: hearingAids ?? this.hearingAids,
        remarks: remarks ?? this.remarks,
        generateShiftInformation:
            generateShiftInformation ?? this.generateShiftInformation,
        qualityBy: qualityBy ?? this.qualityBy,
        circumstance: circumstance ?? this.circumstance,
        circumstanceRemark: circumstanceRemark ?? this.circumstanceRemark,
        fallAccompany: fallAccompany ?? this.fallAccompany,
        fallFactor: fallFactor ?? this.fallFactor,
        doctorDate: doctorDate ?? this.doctorDate,
        nurseDate: nurseDate ?? this.nurseDate,
        dependentsDate: dependentsDate ?? this.dependentsDate,
        evacuateHospital: evacuateHospital ?? this.evacuateHospital,
        passAway: passAway ?? this.passAway,
        damage: damage ?? this.damage,
        damageType: damageType ?? this.damageType,
        damageDescription: damageDescription ?? this.damageDescription,
        armpitTemperature: armpitTemperature ?? this.armpitTemperature,
        bloodPressure: bloodPressure ?? this.bloodPressure,
        pulse: pulse ?? this.pulse,
        bloodSugar: bloodSugar ?? this.bloodSugar,
        breathe: breathe ?? this.breathe,
        painVas: painVas ?? this.painVas,
        bloodOxygen: bloodOxygen ?? this.bloodOxygen,
        painAlg: painAlg ?? this.painAlg,
        limbs: limbs ?? this.limbs,
        anticoagulant: anticoagulant ?? this.anticoagulant,
        diagnosis: diagnosis ?? this.diagnosis,
        anticoagulantName: anticoagulantName ?? this.anticoagulantName,
        medicinalSource: medicinalSource ?? this.medicinalSource,
        medicinalSourceName: medicinalSourceName ?? this.medicinalSourceName,
        measure: measure ?? this.measure,
        nurseType: nurseType ?? this.nurseType,
        nurseTypeDate: nurseTypeDate ?? this.nurseTypeDate,
        single: single ?? this.single,
        singleDate: singleDate ?? this.singleDate,
        foundName: foundName ?? this.foundName,
        foundPosts: foundPosts ?? this.foundPosts,
        id: id ?? this.id,
        createdBy: createdBy ?? this.createdBy,
        createdDate: createdDate ?? this.createdDate,
        updatedBy: updatedBy ?? this.updatedBy,
        updatedDate: updatedDate ?? this.updatedDate,
        otherEnvironmentDescription:
            otherEnvironmentDescription ?? this.otherEnvironmentDescription,
        sexName: sexName ?? this.sexName,
        sex: sex ?? this.sex,
        occurLocationType: occurLocationType ?? this.occurLocationType,
        occurLocation: occurLocation ?? this.occurLocation,
        causePersonType: causePersonType ?? this.causePersonType,
        causePerson: causePerson ?? this.causePerson,
        wrongPatternType: wrongPatternType ?? this.wrongPatternType,
        wrongPattern: wrongPattern ?? this.wrongPattern,
        correctDrugName: correctDrugName ?? this.correctDrugName,
        wrongDrugName: wrongDrugName ?? this.wrongDrugName,
        eventDisposal: eventDisposal ?? this.eventDisposal,
        isProcessFactor: isProcessFactor ?? this.isProcessFactor,
        processFactor: processFactor ?? this.processFactor,
        isDeviceDrugFactor: isDeviceDrugFactor ?? this.isDeviceDrugFactor,
        deviceDrugFactor: deviceDrugFactor ?? this.deviceDrugFactor,
        isEnvirnmentFactor: isEnvirnmentFactor ?? this.isEnvirnmentFactor,
        envirnmentFactor: envirnmentFactor ?? this.envirnmentFactor,
        isPersonnelFactor: isPersonnelFactor ?? this.isPersonnelFactor,
        personnelFactor: personnelFactor ?? this.personnelFactor,
        isCommunicationFactor: isCommunicationFactor ?? this.isCommunicationFactor,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['branchName'] = branchName;
    map['damageLevelName'] = damageLevelName;
    if (messageMan != null) {
      map['messageMan'] = messageMan;
    }
    if (anaomalousFalldownAttaches != null) {
      map['anaomalousFalldownAttaches'] =
          anaomalousFalldownAttaches?.map((v) => v.toJson()).toList();
    }
    map['findStaffName'] = findStaffName;
    map['customerName'] = customerName;
    map['bedId'] = bedId;
    map['bedNo'] = bedNo;
    map['fallDownDate'] = fallDownDate;
    map['fallFactorName'] = fallFactorName;
    map['damageTypeName'] = damageTypeName;
    map['circumstanceName'] = circumstanceName;
    map['qualityByName'] = qualityByName;
    map['cityId'] = cityId;
    map['eventId'] = eventId;
    map['reportTime'] = reportTime;
    map['reporterId'] = reporterId;
    map['reporterName'] = reporterName;
    map['workingAge'] = workingAge;
    map['post'] = post;
    map['customerId'] = customerId;
    map['consciousState'] = consciousState;
    map['falldownHighRish'] = falldownHighRish;
    map['screenItem'] = screenItem;
    map['activityAnalyze'] = activityAnalyze;
    map['diagnose'] = diagnose;
    map['falldownLocationType'] = falldownLocationType;
    map['falldownLocation'] = falldownLocation;
    map['findStaffType'] = findStaffType;
    map['findStaff'] = findStaff;
    map['falldownTimes'] = falldownTimes;
    map['eventDescription'] = eventDescription;
    map['processDescription'] = processDescription;
    map['occurrenceActivityType'] = occurrenceActivityType;
    map['occurrenceActivity'] = occurrenceActivity;
    map['motivationType'] = motivationType;
    map['motivation'] = motivation;
    map['bedrailUsage'] = bedrailUsage;
    map['preventiveAction'] = preventiveAction;
    map['antiFalldownPlan'] = antiFalldownPlan;
    map['useSedative'] = useSedative;
    map['sedativeName'] = sedativeName;
    map['useAntihistamine'] = useAntihistamine;
    map['antihistamineName'] = antihistamineName;
    map['useAngiomyocardiac'] = useAngiomyocardiac;
    map['angiomyocardiacName'] = angiomyocardiacName;
    map['useAnalgetic'] = useAnalgetic;
    map['analgeticName'] = analgeticName;
    map['useAperient'] = useAperient;
    map['aperientName'] = aperientName;
    map['useDiuretic'] = useDiuretic;
    map['diuretic'] = diuretic;
    map['useOtherMedicine'] = useOtherMedicine;
    map['otherMedicineName'] = otherMedicineName;
    map['falldownScreenCorrectness'] = falldownScreenCorrectness;
    map['screenIncorrectItem'] = screenIncorrectItem;
    map['damageLevel'] = damageLevel;
    map['damageParts'] = damageParts;
    map['isHealthStatus'] = isHealthStatus;
    map['healthStatus'] = healthStatus;
    map['healthStatusHemoglobin'] = healthStatusHemoglobin;
    map['healthStatusOther'] = healthStatusOther;
    map['isMedicineCure'] = isMedicineCure;
    map['isNarcotism'] = isNarcotism;
    map['narcotismDescription'] = narcotismDescription;
    map['isMedicine'] = isMedicine;
    map['medicineHours'] = medicineHours;
    map['medicineDescription'] = medicineDescription;
    map['isEnvironment'] = isEnvironment;
    map['environmentDescription'] = environmentDescription;
    map['isEquipment'] = isEquipment;
    map['equipmentDescription'] = equipmentDescription;
    map['equipmentDescriptionOther'] = equipmentDescriptionOther;
    map['envirnmentFactor'] = envirnmentFactor;
    map['isOtherFactor'] = isOtherFactor;
    map['otherFactorDesciption'] = otherFactorDesciption;
    map['notConfirmFalldownRisk'] = notConfirmFalldownRisk;
    map['improperUseEquipment'] = improperUseEquipment;
    map['improperReason'] = improperReason;
    map['evaluationWrong'] = evaluationWrong;
    map['constraintNoRecord'] = constraintNoRecord;
    map['notShift'] = notShift;
    map['equipmentNotSaft'] = equipmentNotSaft;
    map['notFalldownRiskEdu'] = notFalldownRiskEdu;
    map['otherIssue'] = otherIssue;
    map['otherIssueDescription'] = otherIssueDescription;
    map['isElderRelationEdu'] = isElderRelationEdu;
    map['elderRelationEdu'] = elderRelationEdu;
    map['elderRelationEduTime'] = elderRelationEduTime;
    map['isNurseEdu'] = isNurseEdu;
    map['nurseEdu'] = nurseEdu;
    map['nurseEduTime'] = nurseEduTime;
    map['isAmendNursePaln'] = isAmendNursePaln;
    map['amendNursePaln'] = amendNursePaln;
    map['amendNursePalnTime'] = amendNursePalnTime;
    map['isEnvironmentImprovement'] = isEnvironmentImprovement;
    map['environmentImprovement'] = environmentImprovement;
    map['environmentImprovementTime'] = environmentImprovementTime;
    map['isObservationInterval'] = isObservationInterval;
    map['observationOriginalInterval'] = observationOriginalInterval;
    map['observationNewInterval'] = observationNewInterval;
    map['isOtherImprovement'] = isOtherImprovement;
    map['otherImprovement'] = otherImprovement;
    map['otherImprovementTime'] = otherImprovementTime;
    map['executiveAuditOpion'] = executiveAuditOpion;
    map['exdcutiveAuditRate'] = exdcutiveAuditRate;
    map['executiveId'] = executiveId;
    map['executiveName'] = executiveName;
    map['executiveAuditTime'] = executiveAuditTime;
    map['cityManagerId'] = cityManagerId;
    map['cityManager'] = cityManager;
    map['cityManagerOpinion'] = cityManagerOpinion;
    map['cityManagerAuditTime'] = cityManagerAuditTime;
    map['cityManagerForward'] = cityManagerForward;
    map['qualityManagerId'] = qualityManagerId;
    map['qualityManager'] = qualityManager;
    map['qualityManagerOpion'] = qualityManagerOpion;
    map['qualityManagerAuditTime'] = qualityManagerAuditTime;
    map['qualityManagerForward'] = qualityManagerForward;
    map['departDirectorId'] = departDirectorId;
    map['departDirector'] = departDirector;
    map['departDirectorOpion'] = departDirectorOpion;
    map['departDirectorAuditTime'] = departDirectorAuditTime;
    map['departDirectorForward'] = departDirectorForward;
    map['generalManagerId'] = generalManagerId;
    map['generalManager'] = generalManager;
    map['generalManagerOpion'] = generalManagerOpion;
    map['generalManagerAuditTime'] = generalManagerAuditTime;
    map['approveResultIncontrol'] = approveResultIncontrol;
    map['approveResultRate'] = approveResultRate;
    map['approveResultOpion'] = approveResultOpion;
    map['currentTreatmentMeasures'] = currentTreatmentMeasures;
    map['branchId'] = branchId;
    map['tenantId'] = tenantId;
    map['saasId'] = saasId;
    map['informFamilies'] = informFamilies;
    map['informDoctor'] = informDoctor;
    map['informNurse'] = informNurse;
    map['callEmergencyNumber'] = callEmergencyNumber;
    map['bodyPositionBeforeFallingType'] = bodyPositionBeforeFallingType;
    map['bodyPositionBeforeFalling'] = bodyPositionBeforeFalling;
    map['accessoriesOrEnvironmentType'] = accessoriesOrEnvironmentType;
    map['accessoriesOrEnvironment'] = accessoriesOrEnvironment;
    map['constraintStatusBeforeFalling'] = constraintStatusBeforeFalling;
    map['wearingShoesSituationType'] = wearingShoesSituationType;
    map['wearingShoesSituation'] = wearingShoesSituation;
    map['accessoriesType'] = accessoriesType;
    map['accessories'] = accessories;
    map['visionAccessories'] = visionAccessories;
    map['hearingAids'] = hearingAids;
    map['remarks'] = remarks;
    map['generateShiftInformation'] = generateShiftInformation;
    map['qualityBy'] = qualityBy;
    map['circumstance'] = circumstance;
    map['circumstanceRemark'] = circumstanceRemark;
    map['fallAccompany'] = fallAccompany;
    map['fallFactor'] = fallFactor;
    map['doctorDate'] = doctorDate;
    map['nurseDate'] = nurseDate;
    map['dependentsDate'] = dependentsDate;
    map['evacuateHospital'] = evacuateHospital;
    map['passAway'] = passAway;
    map['damage'] = damage;
    map['damageType'] = damageType;
    map['damageDescription'] = damageDescription;
    map['armpitTemperature'] = armpitTemperature;
    map['bloodPressure'] = bloodPressure;
    map['pulse'] = pulse;
    map['bloodSugar'] = bloodSugar;
    map['breathe'] = breathe;
    map['painVas'] = painVas;
    map['bloodOxygen'] = bloodOxygen;
    map['painAlg'] = painAlg;
    map['limbs'] = limbs;
    map['anticoagulant'] = anticoagulant;
    map['diagnosis'] = diagnosis;
    map['anticoagulantName'] = anticoagulantName;
    map['medicinalSource'] = medicinalSource;
    map['medicinalSourceName'] = medicinalSourceName;
    map['measure'] = measure;
    map['nurseType'] = nurseType;
    map['nurseTypeDate'] = nurseTypeDate;
    map['single'] = single;
    map['singleDate'] = singleDate;
    map['foundName'] = foundName;
    map['foundPosts'] = foundPosts;
    map['id'] = id;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    map['otherEnvironmentDescription'] = otherEnvironmentDescription;
    map['sexName'] = sexName;
    map['sex'] = sex;
    map['occurLocationType'] = occurLocationType;
    map['causePersonType'] = causePersonType;
    map['occurLocation'] = occurLocation;
    map['causePerson'] = causePerson;
    map['wrongPatternType'] = wrongPatternType;
    map['wrongPattern'] = wrongPattern;
    map['correctDrugName'] = correctDrugName;
    map['wrongDrugName'] = wrongDrugName;
    map['eventDisposal'] = eventDisposal;
    map['isDeviceDrugFactor'] = isDeviceDrugFactor;
    map['deviceDrugFactor'] = deviceDrugFactor;
    map['isEnvirnmentFactor'] = isEnvirnmentFactor;
    map['personnelFactor'] = personnelFactor;
    map['isPersonnelFactor'] = isPersonnelFactor;
    map['isCommunicationFactor'] = isCommunicationFactor;

    map['branchName'] = branchName;
    map['abnormalResultName'] = abnormalResultName;
    map['findStaffName'] = findStaffName;
    map['cityId'] = cityId;
    map['eventId'] = eventId;
    map['reportTime'] = reportTime;
    map['reporterName'] = reporterName;
    map['workingAge'] = workingAge;
    map['post'] = post;
    map['customerId'] = customerId;
    map['consciousState'] = consciousState;
    map['activityAnalyze'] = activityAnalyze;
    map['diagnose'] = diagnose;
    map['occurLocationType'] = occurLocationType;
    map['occurLocation'] = occurLocation;
    map['findStaffType'] = findStaffType;
    map['findStaff'] = findStaff;
    map['causePersonType'] = causePersonType;
    map['causePerson'] = causePerson;
    map['wrongPatternType'] = wrongPatternType;
    map['wrongPattern'] = wrongPattern;
    map['correctDrugName'] = correctDrugName;
    map['wrongDrugName'] = wrongDrugName;
    map['eventDescription'] = eventDescription;
    map['eventDisposal'] = eventDisposal;
    map['isProcessFactor'] = isProcessFactor;
    map['processFactor'] = processFactor;
    map['isDeviceDrugFactor'] = isDeviceDrugFactor;
    map['deviceDrugFactor'] = deviceDrugFactor;
    map['isEnvirnmentFactor'] = isEnvirnmentFactor;
    map['envirnmentFactor'] = envirnmentFactor;
    map['isPersonnelFactor'] = isPersonnelFactor;
    map['personnelFactor'] = personnelFactor;
    map['isCommunicationFactor'] = isCommunicationFactor;
    map['communicationFactor'] = communicationFactor;
    map['isElderHealthFactor'] = isElderHealthFactor;
    map['elderHealthFactor'] = elderHealthFactor;
    map['isMechanismManagermentFactor'] = isMechanismManagermentFactor;
    map['mechanismManagermentFactor'] = mechanismManagermentFactor;
    map['isOtherFactor'] = isOtherFactor;
    map['otherFactor'] = otherFactor;
    map['abnormalResult'] = abnormalResult;
    map['isElderRelationEdu'] = isElderRelationEdu;
    map['elderRelationEdu'] = elderRelationEdu;
    map['elderRelationEduTime'] = elderRelationEduTime;
    map['isNurseEdu'] = isNurseEdu;
    map['nurseEdu'] = nurseEdu;
    map['nurseEduTime'] = nurseEduTime;
    map['isAmendNursePaln'] = isAmendNursePaln;
    map['amendNursePaln'] = amendNursePaln;
    map['amendNursePalnTime'] = amendNursePalnTime;
    map['isObservationInterval'] = isObservationInterval;
    map['observationOriginalInterval'] = observationOriginalInterval;
    map['observationNewInterval'] = observationNewInterval;
    map['isOtherImprovement'] = isOtherImprovement;
    map['otherImprovement'] = otherImprovement;
    map['otherImprovementTime'] = otherImprovementTime;
    map['executiveAuditOpion'] = executiveAuditOpion;
    map['exdcutiveAuditRate'] = exdcutiveAuditRate;
    map['executiveId'] = executiveId;
    map['executiveName'] = executiveName;
    map['executiveAuditTime'] = executiveAuditTime;
    map['cityManagerId'] = cityManagerId;
    map['cityManager'] = cityManager;
    map['cityManagerOpinion'] = cityManagerOpinion;
    map['cityManagerAuditTime'] = cityManagerAuditTime;
    map['cityManagerForward'] = cityManagerForward;
    map['qualityManagerId'] = qualityManagerId;
    map['qualityManager'] = qualityManager;
    map['qualityManagerOpion'] = qualityManagerOpion;
    map['qualityManagerAuditTime'] = qualityManagerAuditTime;
    map['qualityManagerForward'] = qualityManagerForward;
    map['departDirectorId'] = departDirectorId;
    map['departDirector'] = departDirector;
    map['departDirectorOpion'] = departDirectorOpion;
    map['departDirectorAuditTime'] = departDirectorAuditTime;
    map['departDirectorForward'] = departDirectorForward;
    map['generalManagerId'] = generalManagerId;
    map['generalManager'] = generalManager;
    map['generalManagerOpion'] = generalManagerOpion;
    map['generalManagerAuditTime'] = generalManagerAuditTime;
    map['approveResultIncontrol'] = approveResultIncontrol;
    map['approveResultRate'] = approveResultRate;
    map['approveResultOpion'] = approveResultOpion;
    map['branchId'] = branchId;
    map['tenantId'] = tenantId;
    map['saasId'] = saasId;
    map['id'] = id;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    map['envirnmentFactorTime'] = envirnmentFactorTime;
    return map;
  }
}
